<div class="centercontent tables">
<div class="pageheader notab">
<h1 class="pagetitle">Modul Pengelolaan Inventaris</h1>
<span class="pagedesc">
Nama Barang : <?php echo $nama_barang.' ('.$keterangan.')'; ?>
</span> </div>
<!--pageheader-->
<div id="contentwrapper" class="contentwrapper"><br />
<div class="tombol_tambah" align="right">   
<button onclick="location.href='<?php echo base_url(); ?>index.php/pengelolaan_inventaris/'" class="stdbtn btn_orange"><< Kembali ke Daftar Barang</button>
</div>
<div class="contenttitle2">
<h3>Histori Peminjaman Barang</h3>
</div>
<!--contenttitle-->
<?php if($histori_peminjaman_barang->num_rows() > 0){?>
<table class="stdtable" id="dyntable" border="0" cellpadding="0" cellspacing="0">
<colgroup><col class="con0" /><col class="con1" /><col class="con0" /><col class="con1" /><col class="con0" /></colgroup> 
<thead> 
<tr>
	<th class="head0">Kode Barang</th>
	<th class="head1">Nama Agenda</th>
	<th class="head0">Peminjam</th>
	<th class="head1">Tanggal Pinjam</th>
	<th class="head0">Tanggal Kembali</th>
	<th class="head1">Status</th>
	<th class="head0">Kondisi Barang</th>	
</tr>
</thead> 
<tfoot> 
	<th class="head0">Kode Barang</th>
	<th class="head1">Nama Agenda</th>
	<th class="head0">Peminjam</th>
	<th class="head1">Tanggal Pinjam</th>
	<th class="head0">Tanggal Kembali</th>
	<th class="head1">Status</th>
	<th class="head0">Kondisi Barang</th>
	</tr>
</tfoot> 
<tbody>
	<?php 
						foreach($histori_peminjaman_barang->result() as $row){			
			 		?>
	<tr class="gradeX">
	<td><?php echo $row->kode_barang; ?></td>
	<td><?php echo $row->nama_agenda; ?></td>
	<td><?php echo $row->nama_anggota; ?></td>
	<td><?php echo $row->tanggal_pinjam.' ('.$row->jam_pinjam.')'; ?></td>
	<td><?php echo $row->tanggal_kembali.' ('.$row->jam_kembali.')'; ?></td>
	<td><?php echo $row->status_peminjaman; ?></td>
	<td><?php echo $row->kondisi_barang; ?></td>
  </tr>
	 <?php
					  }
			  		?> 
</tbody>
</table>
<?php } else { echo 
						 '<div class="notibar msginfo">
							<p>Data Peminjaman Barang Belum Ada.</p>
						  </div>';
					}
			  		?> 
<!--contenttitle--></div>
<!--contentwrapper--> </div>
<!-- centercontent -->